﻿@model List<CPPaquetes.BusinessEntities.ProgramaDestino>

<link href="@Url.Content("~/Content/jquery.treeview.css")" rel="Stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.treeview.js")" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $("#browser").treeview();
        $("#navigation").treeview({
            persist: "location",
            collapsed: true,
            unique: true,
            animated: "fast"
        });
    });
</script>

<div id="navigation">
       <ul id="navigation">
        @foreach (CPPaquetes.BusinessEntities.ProgramaDestino item in Model)
        {    
            <li>
                <div><img src="@Url.Content("~/Content/themes/images/paquete.png")" width="16px" height="16px" />&nbsp;@item.NOMBRE_DESTINO</div>
                <ul>
                    @foreach (var programa in item.PROGRAMAS)
                    {        
                        <li>
                            <div>
                            <img src="@Url.Content("~/Content/themes/images/fecha_verde.png")" width="16px" height="16px" />&nbsp;
                            <a  target="_blank" href="@Url.Content("~/Home/ShowPrograma?Id=" + programa.PROGRAMA_ID)" > @programa.NOMBRE_PROGRAMA&nbsp;@programa.NRO_NOCHES&nbsp;noches&nbsp;@programa.FECHA_VIGENCIA_HASTA </a> 
                            
                            </div>
                        </li>
                    }
                </ul>
            </li> 
        }
    </ul>
</div>
